<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
<script>

//【示例1】下面示例使用Object.create创建一个对象，它继承null，即把null作为原型，该对象包含两个可枚举的属性size和shape，属性值分别为"large"和"round"。
var newObj = Object.create(null, {
            size: {
                value: "large",
                enumerable: true
            },
            shape: {
                value: "round",
                enumerable: true
            }
        });
document.write(newObj.size + "<br/>");			//large
document.write(newObj.shape + "<br/>");			//round
document.write(Object.getPrototypeOf(newObj));	//null



</script>
</head>

<body>
</body>
</html>
